package com.runmi.webchat.aftersale.dbcore.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.runmi.webchat.aftersale.dbcore.entity.SetupOrderDetail;
import com.runmi.webchat.aftersale.dbcore.mapper.SetupOrderDetailMapper;

@Repository
public class SetupOrderDetailDao {

	@Autowired
	private SetupOrderDetailMapper setupOrderDetailMapper;
	
	public List<SetupOrderDetail> getSetupOrderDetailByOrderId(Integer orderId){
		SetupOrderDetail record=new SetupOrderDetail();
		record.setDelFlag((byte)0);
		record.setOrderId(orderId);
		return setupOrderDetailMapper.select(record);
	}
	
	public List<SetupOrderDetail> getSetupOrderDetailByOrderIdAndItemId(Integer orderId,Integer itemId){
		SetupOrderDetail record=new SetupOrderDetail();
		record.setDelFlag((byte)0);
		record.setOrderId(orderId);
		record.setItemId(itemId);
		return setupOrderDetailMapper.select(record);
	}
}
